package com.juc.blockingQueue.LinkedTransferQueue.transfer2;

public class Test2 {

	public static void main(String[] args) throws InterruptedException {
		MyServiceB service = new MyServiceB();
		ThreadB1 a = new ThreadB1(service);
		a.setName("a");
		ThreadB2 b = new ThreadB2(service);
		b.setName("b");
		a.start();
		Thread.sleep(4000);
		b.start();
	}
}
